package com.patternity.dotgraph;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * The resource bundle for UML styles for Graphviz Dot
 * 
 * @author cyrille martraire
 */
public class DotStyles {
	private static final String BUNDLE_NAME = "com.patternity.dotgraph.dotstyles";

	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
			.getBundle(BUNDLE_NAME);

	private DotStyles() {
	}

	public static String getString(final String key) {
		try {
			return RESOURCE_BUNDLE.getString(key);
		} catch (final MissingResourceException e) {
			return '!' + key + '!';
		}
	}
}
